from django.urls import path,re_path,include
from serializer import views
app_name = "serializer"
# from rest_framework import routers
# router = routers.DefaultRouter()
# router.register('books',views.BookView)

urlpatterns = [
    path('books/',views.BookView.as_view()),
    # re_path(r'books/(?P<pk>\d+)/$',views.BookFilter.as_view()),

    # path('books/',views.BookView.as_view({
    #     'get': 'list',
    #     'post': 'create',
    # })),
    # path('books/<int:pk>/',views.BookView.as_view({
    #     'get': 'retrieve',
    #     'put': 'update',
    #     'delete': 'destroy',
    # })),
    # path('user/',views.UserView.as_view()),

    # re_path('^',include(router.urls)),
    re_path('course',views.CourseView.as_view()),
]